package flow;

/**
 * 斐波那契数列
 */
public class Fibonacci {

    public static void main(String[] args) {
        int n = 10;
        int[] arr = new int[n];
        for(int i = 0; i < arr.length; i ++) {
            if(i == 0 || i == 1)
                arr[i] = 1;
            else
                arr[i] = arr[i - 1] + arr[i - 2];
        }
        for (int i : arr) {
            System.out.printf("%d\t", i);
        }
    }
}
